@import "./_variables";
//样式重置
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  outline: none;
}
html {
  font-size: 12px;
}
body {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #ededed;
}
a {
  color: #999999;
}
ul{
  list-style: none;
}
//循环声明颜色
@each $colorKey,$color in $colors {
  .#{$colorKey}{
    color: $color;
  }
  .bg-#{$colorKey}{
    background: $color;
  }
}
//循环声明字体大小
@each $fontKey,$font in $font-sizes{
  .font-#{$fontKey}{
    font-size: $font * $font-size-base;
  }
}
//循环字体位置
@each $alignKey,$align in $text-aligns{
  .text-#{$alignKey}{
    text-align: $align;
  }
}
//循环border
@each $borderKey,$border in $border-position{
  .border {
    border:1px solid $border-color
  }
  .border-#{$borderKey}{
    border-#{$border}:1px solid $border-color
  }
};
@each $jcKey,$jc in $flex-jc{
  .jc-#{$jcKey}{
    justify-content: $jc;
  }
}
@each $aiKey,$ai in $flex-ai{
  .ai-#{$aiKey}{
    align-items: $ai;
  }
}
//mt-1    ==>margin-top:1px
$position-type:(
  m:margin,
  p:padding
);
$position-diretion:(
  l:left,
  r:right,
  t:top,
  b:bottom
);
@each $typeKey,$type in $position-type{
  @each $diretionKey,$diretion in $position-diretion{
    //这里会获得 left   right   top     bottom
    @each $sizeKey,$size in $spacing-sizes{
      .#{$typeKey}#{$diretionKey}-#{$sizeKey}{
        #{$type}-#{$diretion}:$size * $spacing-base-size
      }
    }
  }
}
@each $typeKey,$type in $position-type{
  @each $sizeKey,$size in $spacing-sizes{
    .#{$typeKey}-#{$sizeKey}{
      #{$type}:$size * $spacing-base-size
    }
  }
}
.btn {
  border: none;
  font-size: map_get($font-sizes,'xxs') * $font-size-base;
  border-radius: 0.167rem;
  width: 60px;
  height: 24px;
  line-height: 1.25rem;
}
//sprite
.sprite{
  background: url("../images/index.png") no-repeat 0 0;
  background-size: 31.25rem;
  display: inline-block;
  &.blz{
    background-position: 63.546% 15.517%;
    width: 1.917rem;
    height: 1.667rem;
  }
  &.arrowTop{
    background-position: 38.577% 52.076%;
    width: 10px;
    height: 10px;
  }
  &.slh{
    background-position: 47.619% 56.305%;
    width: 18px;
    height: 3px;
  }
}
//nav
.nav{
  .nav-item{
    border-bottom: 3px solid transparent;
    &.active{
      border-bottom: 3px solid map_get($colors,'primary');
      color: map_get($colors,'primary');
    }
  }
  .back-nav-item{
    border-bottom: 3px solid transparent;
    &.active{
      border-bottom: 3px solid map_get($colors,'white');
    }
  }

}
.video{
  border: 1px solid $border-color;
  padding: 6px 34px;
  border-radius: 5px;
  background-color: map_get($colors,'white-2');
}
.addIcon {
  width: 60px;
  height: 60px;
  border-radius: 47%;
}
.adviceIcon {
  width: 45px;
  height: 45px;
  border-radius: 47%;
}
.recommendIcon{
  width: 35px;
  height: 35px;
}
.heroIcon{
  width: 48px;
  height: 48px;
}